Repository navigation
fix(studio): a PageShell row with nothing of its own draws no lone hairline; pin the title-row tenants outside studio-design - #37542
Conversation
…unted accent and its dark scope; PageShell's row draws no lone hairline - S1: with no copilot served, the slot toggle ends the flow page's title row, not the top bar, and hides and shows the slot. - S2: PageShell's compact and list rows (and their embedded gate), the directory header and the diagnostics header end with Save and the assistant under Studio; controls outside Studio. - N1: two surfaces holding the accent on body, one unmounted, keep it. - N4: under the dark theme the surface root and body match the dark variant and carry the accent's dark declarations. - N3: PageShell passes `divider` from its own stats and actions. Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T12:45Z): Area notes for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head b74f7ff · 2026-11-26T12:46Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37542, card #37520 (follow-up of the contract record 7189499173 on PR #37474). Read: the card's body and its three comments (triage 7190492158, claim 7190642371, os-dev report 7191993931), the final-head comment 7192432076 on the PR, the PR body, the net diff against Check-runs on the head: 51 in total, 38 success and 13 skipped, with none failed or pending. Test UI 1–16, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, Check PR Size, PR-body guards and Governed Surface Queue Guard all passed. Findings, graded:
① Derived judgmentsThe card's items against the diff.
File surface. The diff stays within the claim's surface: tests under Public surface. None changes. Main drift. The branch was not re-merged after ② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…udio-title-row-pins
A row with actions of its own and no stats (ResourceEditPage's embedded frame passes actions without `embedded`) draws the hairline before the assistant, on the compact and the list row. Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
Fixes #37520
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Pins for the Studio title-row tenants that PR #37474 placed outside
studio-design/**, plus one product change (N3), as the contract record on #37474 asked (findings S1, S2, N1, N3, N4).PageShell.tsxonly): both PageShell rows (compact and list) now passdividertoStudioTitleRowEnd, computed from the row's own stats and actions. A row with neither draws the assistant with no hairline before it; Save still brings the hairline, asStudioTitleRowEndalready counts it as an action. This matches what the item header and the directory header already do. Outside Studio nothing changes (the row end draws nothing there).studio-slot-toggle) ends the flow page's title row behind a hairline, is absent from the top bar, is the only one on the page, and hides and shows the slot (aria-pressed and accessible name follow). Control: with a copilot served the same row ends with the AI assistant and no toggle.!embeddedgate on both rows (an embedded row draws neither Save nor the assistant); the directory header (assistant with no hairline; Save then hairline then assistant; control outside Studio); the diagnostics header (assistant last, after Refresh, behind a hairline; control outside Studio).body, one unmounted:bodykeeps the classes and the marker; the last unmount removes both. Control: one mount and unmount leavesbodyas found.dark:variant is read from the app shell's stylesheet; under thedarkclass on the page root, the surface root andbodyboth match the variant and carry the accent's dark declarations (graphite--primaryand--ringfromSTUDIO_ACCENT_HSL.dark). Control: under the light theme neither matches.Each new pin went into the existing harness file for its component as a top-level
describe(ruling record 6583487846), so no new test file is added.Read first (by risk):
ui/packages/app-shell/src/views/metadata-admin/PageShell.tsx, therowHasOwnControlshunk: the only product line.StudioDesignSurface.graphite-37455.test.tsx, the dark-variant block: it readsstyles.cssand matches the variant selector by selector (see Acceptance notes).StudioDesignSurface.pillarsClaimSlot-12725.test.tsx, the S1 block.Two-minute check:
cd ui && pnpm --filter @object-ui/app-shell exec vitest run --root ../.. packages/app-shell/src/views/metadata-admin/PageShell.narrowHeader-12306.test.tsxshows 13 passed, among them the twoN3cases.Tests
All on head
b74f7ff4c7. Nine ablations, each throughscripts/ablation-replace.mjs(mutation proven on disk, restore proven against HEAD), each turned its pin red:StudioDesignSurface.tsx, mutation only, restored)StudioTitleRowEndreplaced bynull!embedded &&dropped on the compact row!embedded &&dropped on the list rowrowHasOwnControls = trueStudioTitleRowEnddeletedStudioTitleRowEnddeletedmountedSurfaces > 0early return deleted (plain add/remove)dark:[--primary:220_9%_83%]removed fromSTUDIO_ACCENT(A2's first attempt was refused by the tool before any run, because its replacement was a suffix of its anchor; it was rerun with a distinct replacement, row above.)
Suite and typecheck readings
PageShellor reads the row end, divider or toggle (15 files):Test Files 15 passed (15),Tests 240 passed (240).pnpm --filter @object-ui/app-shell type-check(bothtsc --noEmitandtsc -p tsconfig.test.json, which compiles the tests):VERDICT command-exit 0.Acceptance notes
:where()(measured: withdarkon the page root,body.matches('.dark *')is true andbody.matches(':where(.dark, .dark *)')is false). The dark pin therefore splits the variant's selector list and matches each selector, which is what:where()means. The light-theme control rules out a pin that passes because nothing matches.StudioDesignSurface.tsxon disk for one run and restored it to HEAD (blob proven equal); the diff does not touch that file, norstudioMenuModel.tsorStudioPackageMenu.tsx.origin/mainmoved to1af67b26cdafter the branch point; the incoming app-shell change (ResourceListPage.tsxand a new record-section module) touches no PageShell prop and none of these files, so the branch was not re-merged.Verification
Derived gates (dispatch-gates --commands, head b74f7ff)
38 derived commands, every one exit 0, plus
pnpm check:changeset-fixed(its roster sits under.changeset) exit 0.dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED (a derived zero: all 38 recorded an exit code), 0 UNRUN. The uiscripts/family:Test Files 172 passed | 2 skipped (174). CI families (Test UI, Type Check UI, Lint UI and the rest) are read from this PR's check-runs, not re-run locally.Generated by Claude Code